package ru.acme.lab10.domain.client;

import ru.acme.lab10.domain.account.Account;
import ru.acme.lab10.domain.account.ImmutableAccount;

public class Client implements ImmutableClient {

	private Account account;
	private String name;
	private Gender gender;
	
	public Client(String name, Gender gender, Account account) {
		this.account = account;
		this.name = name;
		this.gender = gender;
	}

	public ImmutableAccount getImmutableAccount() {
		return account;
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public String getName() {
		return name;
	}

	public Gender getGender() {
		return gender;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public void setGender(Gender gender) {
		this.gender = gender;
	}

	public String getClientSalutation() {
		return gender.getSalutation() + " " + name;
	}
	
}
